package com.bsoft.gol.hcs.clinical.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * @Author impel
 * @Date 2021/4/23 10:52
 * @Description:
 * @Version 1.0
 */
@Entity
@Table(name = "ods_medical_technology_set")
public class OdsMedicalTechnologySet {
    private Integer medicalTechnologySetId;
    private String setType;
    private String attributionType;
    private String setName;
    private String organizationId;
    private String organizationName;
    private String departmentId;
    private String departmentName;
    private String docId;
    private String doctorName;
    private Integer sort;
    private Date createTime;
    private String createUser;
    private Date modifyTime;
    private String modifyUser;

    @Id
    @Column(name = "medical_technology_set_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getMedicalTechnologySetId() {
        return medicalTechnologySetId;
    }

    public void setMedicalTechnologySetId(Integer medicalTechnologySetId) {
        this.medicalTechnologySetId = medicalTechnologySetId;
    }

    @Basic
    @Column(name = "set_type")
    public String getSetType() {
        return setType;
    }

    public void setSetType(String setType) {
        this.setType = setType;
    }

    @Basic
    @Column(name = "attribution_type")
    public String getAttributionType() {
        return attributionType;
    }

    public void setAttributionType(String attributionType) {
        this.attributionType = attributionType;
    }

    @Basic
    @Column(name = "set_name")
    public String getSetName() {
        return setName;
    }

    public void setSetName(String setName) {
        this.setName = setName;
    }

    @Basic
    @Column(name = "organization_id")
    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    @Basic
    @Column(name = "organization_name")
    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    @Basic
    @Column(name = "department_id")
    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    @Basic
    @Column(name = "department_name")
    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    @Basic
    @Column(name = "doc_id")
    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    @Basic
    @Column(name = "doctor_name")
    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    @Basic
    @Column(name = "sort")
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "modify_time")
    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Basic
    @Column(name = "modify_user")
    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        OdsMedicalTechnologySet that = (OdsMedicalTechnologySet) o;

        if (medicalTechnologySetId != null ? !medicalTechnologySetId.equals(that.medicalTechnologySetId) : that.medicalTechnologySetId != null) {
            return false;
        }
        if (setType != null ? !setType.equals(that.setType) : that.setType != null) {
            return false;
        }
        if (attributionType != null ? !attributionType.equals(that.attributionType) : that.attributionType != null) {
            return false;
        }
        if (setName != null ? !setName.equals(that.setName) : that.setName != null) {
            return false;
        }
        if (organizationId != null ? !organizationId.equals(that.organizationId) : that.organizationId != null) {
            return false;
        }
        if (organizationName != null ? !organizationName.equals(that.organizationName) : that.organizationName != null) {
            return false;
        }
        if (departmentId != null ? !departmentId.equals(that.departmentId) : that.departmentId != null) {
            return false;
        }
        if (departmentName != null ? !departmentName.equals(that.departmentName) : that.departmentName != null) {
            return false;
        }
        if (docId != null ? !docId.equals(that.docId) : that.docId != null) {
            return false;
        }
        if (doctorName != null ? !doctorName.equals(that.doctorName) : that.doctorName != null) {
            return false;
        }
        if (sort != null ? !sort.equals(that.sort) : that.sort != null) {
            return false;
        }
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) {
            return false;
        }
        if (createUser != null ? !createUser.equals(that.createUser) : that.createUser != null) {
            return false;
        }
        if (modifyTime != null ? !modifyTime.equals(that.modifyTime) : that.modifyTime != null) {
            return false;
        }
        if (modifyUser != null ? !modifyUser.equals(that.modifyUser) : that.modifyUser != null) {
            return false;
        }

        return true;
    }

    @Override
    public int hashCode() {
        int result = medicalTechnologySetId != null ? medicalTechnologySetId.hashCode() : 0;
        result = 31 * result + (setType != null ? setType.hashCode() : 0);
        result = 31 * result + (attributionType != null ? attributionType.hashCode() : 0);
        result = 31 * result + (setName != null ? setName.hashCode() : 0);
        result = 31 * result + (organizationId != null ? organizationId.hashCode() : 0);
        result = 31 * result + (organizationName != null ? organizationName.hashCode() : 0);
        result = 31 * result + (departmentId != null ? departmentId.hashCode() : 0);
        result = 31 * result + (departmentName != null ? departmentName.hashCode() : 0);
        result = 31 * result + (docId != null ? docId.hashCode() : 0);
        result = 31 * result + (doctorName != null ? doctorName.hashCode() : 0);
        result = 31 * result + (sort != null ? sort.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (createUser != null ? createUser.hashCode() : 0);
        result = 31 * result + (modifyTime != null ? modifyTime.hashCode() : 0);
        result = 31 * result + (modifyUser != null ? modifyUser.hashCode() : 0);
        return result;
    }
}
